import axios from '@/plugins/axios'

export function getAllTags (params) {
  return axios.get('/api/tags', params)
}

export function getTagDetail (id, params) {
  return axios.get('/api/tags/' + id, params)
}

export function createTag (params) {
  return axios.post('/api/tags', params)
}

export function updateTag (id, params) {
  return axios.put('/api/tags/' + id, params)
}

export function deleteTag (id, params) {
  return axios.delete('/api/tags/' + id, params)
}
